﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TravelsDetails.aspx.cs"
    Inherits="NJL.Web.Visitor.TravelsDetails" %>

<%@ Import Namespace="Royalsoft.Common" %>
<%@ Register Src="~/Controls/WUCHeaderVisitor.ascx" TagName="WUCHeaderVisitor" TagPrefix="uc2" %>
<%@ Register Src="~/Controls/WUCFooter.ascx" TagName="WUCFooter" TagPrefix="uc3" %>
<%@ Register Src="~/Controls/WUCFooterShop.ascx" TagName="WUCFooterShop" TagPrefix="uc1" %>
<%@ Register Src="~/Controls/WUCVisitorSpaceLeftUserInfo.ascx" TagName="WUCVisitorSpaceLeftUserInfo"
    TagPrefix="uc5" %>
<%@ Register Src="~/Controls/WUCVisitorSpaceLeftLastVisitor.ascx" TagName="WUCVisitorSpaceLeftLastVisitor"
    TagPrefix="uc6" %>
<%@ Register Src="~/Controls/WUCVisitorSpaceLeftAttention.ascx" TagName="WUCVisitorSpaceLeftAttention"
    TagPrefix="uc7" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="/Styles/personal/personl_001/base_001.css">
    <script src="/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="/Scripts/popup_layer.js" type="text/javascript"></script>
    <script src="/Scripts/js/jquery.skygqbox.1.3.js" type="text/javascript" charset="UTF-8"></script>
    <script type="text/javascript">
        function GetValidate() {
            document.getElementById("Validate").src = "/ValidateCode.aspx?rand=" + Math.random();
        }  
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <%
        if (UserId == "" || UserName == "")
        {         
    %>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            //示例9，综合效果
            var t9 = new PopupLayer({ trigger: "#txtComment", popupBlk: "#blk9", closeBtn: "#close9", useOverlay: true, useFx: true,
                offsets: {
                    x: 0,
                    y: -41
                }
            });
            t9.doEffects = function (way) {
                if (way == "open") {
                    this.popupLayer.css({ opacity: 0.3 }).show(400, function () {
                        this.popupLayer.animate({
                            left: ($(document).width() - this.popupLayer.width()) / 2,
                            top: (document.documentElement.clientHeight - this.popupLayer.height()) / 2 + $(document).scrollTop(),
                            opacity: 0.8
                        }, 1000, function () { this.popupLayer.css("opacity", 1) } .binding(this));
                    } .binding(this));
                    document.getElementById('Login').src = '<%=WEBSITE_USRE_DOMAIN %>/SecondLogin.aspx?websitecode=<%=WEBSITE_CODE %>&domain=<%=WEBSITE_DOMAIN %>&url=<%=Request.RawUrl %>';
                }
                else {
                    this.popupLayer.animate({
                        left: this.trigger.offset().left,
                        top: this.trigger.offset().top,
                        opacity: 0.1
                    }, { duration: 500, complete: function () { this.popupLayer.css("opacity", 1); this.popupLayer.hide() } .binding(this) });
                }
            }
        });
    </script>
    <div id="blk9" class="blk">
        <div class="popup_title">
            <span class="float_r"><a href="javascript:void(0)" id="close9">关闭</a></span>
            <ul>
                <li class="now"><a target="main">登录</a> </li>
            </ul>
        </div>
        <div>
            <iframe id="Login" name="main" width="500" height="420" style="overflow: hidden;
                border: none;"></iframe>
        </div>
    </div>
    <%
        }
    %>
    <uc2:WUCHeaderVisitor ID="WUCHeaderVisitor1" runat="server" />
    <div class="w1003 cleanFlex" id="content">
        <!--左侧-->
        <div class="w_200 float_l">
            <uc5:WUCVisitorSpaceLeftUserInfo ID="WUCVisitorSpaceLeftUserInfo1" runat="server" />
            <!--最近来访-->
            <div class="blank">
            </div>
            <uc6:WUCVisitorSpaceLeftLastVisitor ID="WUCVisitorSpaceLeftLastVisitor1" runat="server" />
            <!--我的关注-->
            <div class="blank cleanFlex">
            </div>
            <uc7:WUCVisitorSpaceLeftAttention ID="WUCVisitorSpaceLeftAttention1" runat="server" />
            <!--相关景点-->
            <div class="blank cleanFlex">
            </div>
            <div class="boxgreen">
                <div class="titlePerson">
                    <h2>
                        <a>相关景点</a></h2>
                </div>
                <div class="cont">
                    <ul class="imglist cleanFlex">
                        <%
                            for (int i = 0; i < LIST_ATTRACTION.Count; i++)
                            {
                        %>
                        <li style="height: 80px; width: 75px; overflow: hidden;"><a target="_blank" href="/<%=GetAreaNamePinYin(LIST_ATTRACTION[i].AREA_CODE) %>/jdms/<%=LIST_ATTRACTION[i].ID %>.html">
                            <img src="<%=(LIST_ATTRACTION[i].IMAGE_CODE!=null && LIST_ATTRACTION[i].IMAGE_CODE!="")?GetImageUrl(LIST_ATTRACTION[i].IMAGE_CODE,"U2"):"/Images/nopic.jpg" %>"
                                alt="<%=LIST_ATTRACTION[i].ATTRACTION_NAME%>" width="67px" height="50px" class="picBor" />
                        </a>
                            <p>
                                <a target="_blank" title="<%=LIST_ATTRACTION[i].ATTRACTION_NAME%>" href="/<%=GetAreaNamePinYin(LIST_ATTRACTION[i].AREA_CODE) %>/jdms/<%=LIST_ATTRACTION[i].ID %>.html">
                                    <%if (LIST_ATTRACTION[i].ATTRACTION_NAME.Length > 8) Response.Write(LIST_ATTRACTION[i].ATTRACTION_NAME.Substring(0, 8) + "..."); else Response.Write(LIST_ATTRACTION[i].ATTRACTION_NAME);%></a></p>
                        </li>
                        <% 
                            }
                        %>
                    </ul>
                    <div class="cleanFlex" style="height: 1px; overflow: hidden">
                    </div>
                </div>
            </div>
            <!--相关商铺-->
            <div class="blank cleanFlex">
            </div>
            <div class="boxgreen">
                <div class="titlePerson">
                    <h2>
                        <a>相关商铺</a></h2>
                </div>
                <div class="cont cleanFlex">
                    <ul class="imglist">
                        <%
                            for (int i = 0; i < LIST_COMPANY.Count; i++)
                            {
                        %>
                        <li style="height: 80px; width: 75px; overflow: hidden;"><a target="_blank" href="/shangpu/<%=LIST_COMPANY[i].ID %>-index.html">
                            <img src="<%=(LIST_COMPANY[i].IMAGE_CODE!=null && LIST_COMPANY[i].IMAGE_CODE!="")?GetImageUrl(LIST_COMPANY[i].IMAGE_CODE,"U2"):"/Images/nopic.jpg" %>"
                                alt="<%=LIST_COMPANY[i].COMPANY_NAME%>" width="67px" height="50px" class="picBor" />
                        </a>
                            <p>
                                <a target="_blank" title="<%=LIST_COMPANY[i].COMPANY_NAME%>" href="/shangpu/<%=LIST_COMPANY[i].ID %>-index.html">
                                    <%if (LIST_COMPANY[i].COMPANY_NAME.Length > 8) Response.Write(LIST_COMPANY[i].COMPANY_NAME.Substring(0, 8) + "..."); else Response.Write(LIST_COMPANY[i].COMPANY_NAME);%></a></p>
                        </li>
                        <% 
                            }
                        %>
                    </ul>
                    <div class="cleanFlex">
                    </div>
                </div>
            </div>
        </div>
        <div class="boxgreen w_790 float_r" style="_width: 785px; overflow: hidden;">
            <!--位置-->
            <div class="titlePerson">
                <h2>
                    我的主题</h2>
            </div>
            <div class="cont">
                <!--游记分类-->
                <div>
                    <div class="bloglist_status" style="display: none;">
                        <span>写主题</span>
                    </div>
                    <div class="cont">
                        <div class="titlearticle">
                            <h3>
                                <asp:Literal ID="litTitle" runat="server"></asp:Literal></h3>
                            <p>
                                标签：<%=!string.IsNullOrEmpty(model.NEWS_TAG)?model.NEWS_TAG:"暂无"%>&nbsp;（<asp:Literal
                                    ID="litdate" runat="server"></asp:Literal>）
                            </p>
                        </div>
                        <div class="center">
                            <asp:Image ID="Image1" runat="server" Width="500px" Height="375px" BorderWidth="1"
                                CssClass="picBor" />
                        </div>
                        <!--内容-->
                        <div class="fontinfo">
                            <p>
                                <asp:Literal ID="litContent" runat="server"></asp:Literal></p>
                            <div style="width: 100%">
                                <!-- JiaThis Button BEGIN -->
                                <div id="jiathis_style_32x32" style="width: 300px; margin: 0 auto">
                                    <a class="jiathis_button_qzone"></a><a class="jiathis_button_tsina"></a><a class="jiathis_button_tqq">
                                    </a><a class="jiathis_button_renren"></a><a class="jiathis_button_kaixin001"></a>
                                    <a href="http://www.jiathis.com/share/" class="jiathis jiathis_txt jtico jtico_jiathis"
                                        target="_blank"></a><a class="jiathis_counter_style"></a>
                                </div>
                                <script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
                                <!-- JiaThis Button END -->
                            </div>
                            <p>
                                阅读(<asp:Literal ID="litHit" runat="server"></asp:Literal>)
                            </p>
                        </div>
                        <div class="fontbottomlist">
                            <span class="float_r"><a href="javascript:location.href='/wanjia/<%=Request.QueryString["uid"] %>-index.html'">
                                返回主题列表</a> </span>
                            <p>
                                上一篇:<asp:HyperLink ID="hplinkNext" runat="server"></asp:HyperLink></p>
                            <p>
                                下一篇:<asp:HyperLink ID="hipLinkPrev" runat="server"></asp:HyperLink></p>
                        </div>
                        <!--评论-->
                        <div class="blank">
                        </div>
                        <div>
                            <div class="titleFont">
                                <h3>
                                    我要评论</h3>
                            </div>
                            <div>
                                <asp:TextBox ID="txtComment" runat="server" Height="50px" TextMode="MultiLine" Width="750px"></asp:TextBox>
                                <p style="margin-top: 5px;">
                                    <span class="float_r">
                                        <asp:Button ID="btnComment" runat="server" Text="提 交" class="btn" OnClientClick="return check()"
                                            OnClick="btnComment_Click" />
                                    </span>验证码：<asp:TextBox ID="txtValidate" runat="server" class="input" Width="60px"
                                        MaxLength="4"></asp:TextBox>&nbsp;&nbsp;<img id="Validate" onclick="javascript:GetValidate()"
                                            alt="验证码" title="看不清，点击图片，换一张" align="absmiddle" src="/ValidateCode.aspx" style="cursor: pointer" />
                                </p>
                            </div>
                        </div>
                        <div class="blank">
                        </div>
                        <div class="real_list cont">
                            <asp:Repeater ID="rptCommentList" runat="server" OnItemDataBound="rptCommentList_ItemDataBound"
                                OnItemCommand="rptCommentList_ItemCommand">
                                <ItemTemplate>
                                    <div class="dashline commentList cleanFlex">
                                        <!--头像-->
                                        <div class="float_l info_guest">
                                            <asp:Image ID="imgUserHead" runat="server" Width="120px" Height="90px" BorderWidth="1"
                                                CssClass="picBor"></asp:Image>
                                            <p>
                                                <a target="_blank" href="/wanjia/<%#Eval("CREATE_USER_ID") %>-index.html">
                                                    <%#Eval("CREATE_USER_NAME")%></a></p>
                                        </div>
                                        <div class="comment_cont">
                                            <span class="float_r"></span>
                                            <p class="grayfont">
                                                <%#Eval("CREATE_DATE_TIME")%>
                                                <asp:LinkButton ID="lbtnDel" runat="server" CommandName="Del" CommandArgument='<%#Eval("ID") %>'
                                                    OnClientClick="return confirm('您确定要删除吗？')">删除</asp:LinkButton></p>
                                            <p>
                                                <%#Eval("NEWS_COMMENT")%>
                                            </p>
                                        </div>
                                        <div class="cleanFlex">
                                        </div>
                                    </div>
                                </ItemTemplate>
                            </asp:Repeater>
                        </div>
                        <!--分页-->
                        <%--    <div class="cleanFlex page">
                                <span>上一页</span> <span class="now">1</span> <a href="#">2</a> <a href="#">3</a>
                                <a href="#">4</a> <a href="#">5</a> <a href="#">6</a> <a href="#">7</a> <a href="#">
                                    下一页</a> <a href="#">末页</a>
                            </div>--%>
                    </div>
                </div>
                <!--右侧-->
                <div class="float_r w_155 cont" style="display: none;">
                    <!--搜索-->
                    <div class="blank">
                    </div>
                    <div>
                        <input id="keywords" type="text" runat="server" class="input" style="width: 90px;" />
                        <asp:Button ID="btnSearch" runat="server" Text="搜索" class="btn" OnClick="btnSearch_Click" />
                    </div>
                    <!--游记分类-->
                    <div class="blank">
                    </div>
                    <div class="boxgreen">
                        <table cellpadding="0" cellspacing="0" width="100%" class="tab">
                            <tr>
                                <th>
                                    分类
                                </th>
                                <th class="right">
                                    <%--<a href="#">管理</a>--%>
                                </th>
                            </tr>
                            <tr>
                                <td>
                                    全部游记
                                </td>
                                <td class="right">
                                    (<asp:Literal ID="litAllNews" runat="server"></asp:Literal>)
                                </td>
                            </tr>
                            <asp:Repeater ID="newsType" runat="server" OnItemDataBound="newsType_ItemDataBound">
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <a href="/wanjia/<%#Eval("TYPE_CODE") %>-<%=Request.QueryString["uid"] %>-yjlb.html"
                                                target="_blank">
                                                <%#Eval("TYPE_NAME")%></a>
                                        </td>
                                        <td class="right">
                                            (<asp:Literal ID="litNewsCount" runat="server"></asp:Literal>)
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </table>
                    </div>
                    <!--推荐-->
                    <div class="blank">
                    </div>
                    <div class="">
                        <div class="righttitle">
                            <h2>
                                评论最多</h2>
                        </div>
                        <div>
                            <ul class="shuo_list">
                                <asp:Repeater ID="rptCommentMax" runat="server">
                                    <ItemTemplate>
                                        <li class="dashline">
                                            <p>
                                                <a href="/wanjia/<%=Request.QueryString["uid"] %>-youji-<%#Eval("ID") %>.html" target="_blank">
                                                    <%#PageValidate.SqlText(Eval("NEWS_TITLE").ToString(),10)%>
                                                </a>
                                            </p>
                                            <p class="grayfont">
                                                <%#PageValidate.SqlText(Eval("NEWS_SUBJECT_TITLE").ToString(), 25)%>
                                            </p>
                                        </li>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ul>
                            <%-- <p class="cleanFlex more">
                                    <a href="#">更多</a>
                                </p>--%>
                        </div>
                    </div>
                </div>
                <div class="cleanFlex">
                </div>
            </div>
        </div>
    </div>
    <div class="cleanFlex blank">
    </div>
    <uc1:WUCFooterShop ID="WUCFooterShop1" runat="server" />
    <script type="text/javascript">
        function check() {
            var comment = $('#<%=txtComment.ClientID %>').val();
            comment = $.trim(comment);
            if (comment == "") {
                alert("评论内容不能为空哦^_^");
                return false;
            }
            if (comment.length > 100) {
                alert('评论内容不能超过100个字哦^_^');
                return false;
            }
            var txtValidate = document.getElementById("<%=txtValidate.ClientID %>").value;
            txtValidate = $.trim(txtValidate);
            if (txtValidate == "") {
                alert("验证码不能为空哦^_^");
                return false;
            }
        }    
    </script>
    <input id="hiduserid" type="hidden" />
    </form>
</body>
</html>
